package com.lyw.GeoLocationClient.json.em;

import java.util.List;

public class EMResponse {

    /**
     * duration : 125
     * path : /users
     * application : a2e433a0-ab1a-11e2-a134-85fca932f094
     * entities : [{"created":1368377620796,"modified":1368377620796,"type":"user","uuid":"7f90f7ca-bb24-11e2-b2d0-6d8e359945e4","username":"jliu","activated":true}]
     * organization : easemob-demo
     * action : post
     * params : {}
     * uri : https://a1.easemob.com/easemob-demo/chatdemoui/users
     * applicationName : chatdemo
     * timestamp : 1368377620793
     */
    private int duration;
    private String path;
    private String application;
    private List<EntitiesEntity> entities;
    private String organization;
    private String action;
    private ParamsEntity params;
    private String uri;
    private String applicationName;
    private String timestamp;

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public void setApplication(String application) {
        this.application = application;
    }

    public void setEntities(List<EntitiesEntity> entities) {
        this.entities = entities;
    }

    public void setOrganization(String organization) {
        this.organization = organization;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public void setParams(ParamsEntity params) {
        this.params = params;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public void setApplicationName(String applicationName) {
        this.applicationName = applicationName;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public int getDuration() {
        return duration;
    }

    public String getPath() {
        return path;
    }

    public String getApplication() {
        return application;
    }

    public List<EntitiesEntity> getEntities() {
        return entities;
    }

    public String getOrganization() {
        return organization;
    }

    public String getAction() {
        return action;
    }

    public ParamsEntity getParams() {
        return params;
    }

    public String getUri() {
        return uri;
    }

    public String getApplicationName() {
        return applicationName;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public class EntitiesEntity {
        /**
         * created : 1368377620796
         * modified : 1368377620796
         * type : user
         * uuid : 7f90f7ca-bb24-11e2-b2d0-6d8e359945e4
         * username : jliu
         * activated : true
         */
        private String created;
        private String modified;
        private String type;
        private String uuid;
        private String username;
        private boolean activated;

        public void setCreated(String created) {
            this.created = created;
        }

        public void setModified(String modified) {
            this.modified = modified;
        }

        public void setType(String type) {
            this.type = type;
        }

        public void setUuid(String uuid) {
            this.uuid = uuid;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public void setActivated(boolean activated) {
            this.activated = activated;
        }

        public String getCreated() {
            return created;
        }

        public String getModified() {
            return modified;
        }

        public String getType() {
            return type;
        }

        public String getUuid() {
            return uuid;
        }

        public String getUsername() {
            return username;
        }

        public boolean isActivated() {
            return activated;
        }
    }

    public class ParamsEntity {
    }

    @Override
    public String toString() {
        return "EMResponse{" +
                "duration=" + duration +
                ", path='" + path + '\'' +
                ", application='" + application + '\'' +
                ", entities=" + entities +
                ", organization='" + organization + '\'' +
                ", action='" + action + '\'' +
                ", params=" + params +
                ", uri='" + uri + '\'' +
                ", applicationName='" + applicationName + '\'' +
                ", timestamp='" + timestamp + '\'' +
                '}';
    }
}
